package com.canomo.modules.inventory.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 供应商
 * </p>
 *
 * @author xiaoj
 * @since 2018-07-22
 */
@TableName("inv_supplier")
public class Supplier extends Model<Supplier> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    /**
     * 供应商类型：1表示个人,2表示公司
     */
    @TableField("supplier_type")
    private String supplierType;

    /**
     * 供应商名称
     */
    @TableField("supplier_name")
    private String supplierName;

    /**
     * 供应商编号
     */
    @TableField("supplier_number")
    private String supplierNumber;

    /**
     * 联系人名称
     */
    @TableField("contacts_name")
    private String contactsName;

    /**
     * 联系人电话
     */
    @TableField("contacts_phone")
    private String contactsPhone;

    /**
     * 联系人QQ
     */
    @TableField("contacts_qq")
    private String contactsQq;

    /**
     * 创建人
     */
    @TableField("create_user_id")
    private Long createUserId;

    /**
     * 创建时间
     */
    @TableField("create_date")
    private Date createDate;

    /**
     * 更新人
     */
    @TableField("update_user_id")
    private Long updateUserId;

    /**
     * 更新时间
     */
    @TableField("update_date")
    private Date updateDate;

    /**
     * 状态
     */
    private String status;

    /**
     * 备注
     */
    private String remark;

    /**
     * 删除标志：1正常，0删除
     */
    @TableField("del_flag")
    private String delFlag;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getSupplierType() {
        return supplierType;
    }

    public void setSupplierType(String supplierType) {
        this.supplierType = supplierType;
    }
    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }
    public String getSupplierNumber() {
        return supplierNumber;
    }

    public void setSupplierNumber(String supplierNumber) {
        this.supplierNumber = supplierNumber;
    }
    public String getContactsName() {
        return contactsName;
    }

    public void setContactsName(String contactsName) {
        this.contactsName = contactsName;
    }
    public String getContactsPhone() {
        return contactsPhone;
    }

    public void setContactsPhone(String contactsPhone) {
        this.contactsPhone = contactsPhone;
    }
    public String getContactsQq() {
        return contactsQq;
    }

    public void setContactsQq(String contactsQq) {
        this.contactsQq = contactsQq;
    }
    public Long getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Long createUserId) {
        this.createUserId = createUserId;
    }
    public Date getCreateDate() {
        if (createDate == null) {
            return null;
        } else {
            return (Date)createDate.clone();
        }
    }

    public void setCreateDate(Date createDate) {
        if (createDate == null) {
            this.createDate = null;
        } else {
            this.createDate = (Date) createDate.clone();
        }
    }
    public Long getUpdateUserId() {
        return updateUserId;
    }

    public void setUpdateUserId(Long updateUserId) {
        this.updateUserId = updateUserId;
    }
    public Date getUpdateDate() {
        if (updateDate == null) {
            return null;
        } else {
            return (Date)updateDate.clone();
        }
    }

    public void setUpdateDate(Date updateDate) {
        if (updateDate == null) {
            this.updateDate = null;
        } else {
            this.updateDate = (Date) updateDate.clone();
        }
    }
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Supplier{" +
        "id=" + id +
        ", supplierType=" + supplierType +
        ", supplierName=" + supplierName +
        ", supplierNumber=" + supplierNumber +
        ", contactsName=" + contactsName +
        ", contactsPhone=" + contactsPhone +
        ", contactsQq=" + contactsQq +
        ", createUserId=" + createUserId +
        ", createDate=" + createDate +
        ", updateUserId=" + updateUserId +
        ", updateDate=" + updateDate +
        ", status=" + status +
        ", remark=" + remark +
        ", delFlag=" + delFlag +
        "}";
    }
}
